﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PJRScrum
{
    public partial class ProgressForm : Form
    {
        public event EventHandler Stoppen;
        public int aantal = 0;
        public ProgressForm()
        {
            InitializeComponent();
            lblAant.Text = "0";
            progressBar1.Maximum = 100;
            Timer t = new Timer();
            t.Interval = 100;
            t.Tick += new EventHandler(t_Tick);
            t.Start();
        }

        void t_Tick(object sender, EventArgs e)
        {
            progressBar1.Value = (progressBar1.Value + 1)%101;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (Stoppen != null)
                Stoppen(sender, e);
            this.Close();
        }

        public void sluit()
        {
            this.Close();
        }
    }
}
